Revert "gtkplacessidebar: add open flags to other locations"
authorCarlos Soriano <csoriano@gnome.org>
Mon, 29 Feb 2016 21:12:03 +0000 (22:12 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 5 Mar 2016 01:15:52 +0000 (20:15 -0500)
This reverts commit 63a204e1c5b6c since it broke the API.
We will add a new signal instead in an upcomming patch.

https://bugzilla.gnome.org/show_bug.cgi?id=754743

README.in
gtk/gtkfilechooserwidget.c
gtk/gtkplacessidebar.c

index 1b2116da08a7a309c36ede1002935626d616d305..41649264bdb2ba888823154c93d0c089ee70ca8d 100644 (file)
--- a/README.in
+++ b/README.in
@@ -110,11 +110,6 @@ Release notes for 3.20
   However, all previously existing objects still derive from GtkWidget,
   so no existing code should break.
 
-* The GtkPlacesSidebar added a GtkPlacesOpenFlags parameter to the
-  other-locations signal in order to allow opening new windows or
-  tabs as done with other locations. This breaks the API for those
-  using the other-locations signal.
-
 * The way in which GtkLevelBar determines the offset to apply was
   a bit inconsistent in the past; this has been fixed. Applications
   that are using custom offsets should double-check that their
index 1552c6e9c902d83db1fea801dc98bc4a84c99acf..74d224e704ee39ee533a9385185506a176a4d64e 100644 (file)
@@ -2832,7 +2832,6 @@ location_mode_set (GtkFileChooserWidget *impl,
 /* Callback used when the places sidebar asks us to show other locations */
 static void
 places_sidebar_show_other_locations_cb (GtkPlacesSidebar     *sidebar,
-                                        GtkPlacesOpenFlags    open_flags,
                                         GtkFileChooserWidget *impl)
 {
   GtkFileChooserWidgetPrivate *priv = impl->priv;
index 4b330e8fb8e7b8b2f7e31d14028d8cf35881b3cc..91f958f4a072a548e820314b07f8e9e49b75d7b7 100644 (file)
@@ -341,11 +341,9 @@ emit_show_enter_location (GtkPlacesSidebar *sidebar)
 }
 
 static void
-emit_show_other_locations (GtkPlacesSidebar   *sidebar,
-                           GtkPlacesOpenFlags  open_flags)
+emit_show_other_locations (GtkPlacesSidebar *sidebar)
 {
-  g_signal_emit (sidebar, places_sidebar_signals[SHOW_OTHER_LOCATIONS], 0,
-                 open_flags);
+  g_signal_emit (sidebar, places_sidebar_signals[SHOW_OTHER_LOCATIONS], 0);
 }
 
 static void
@@ -2324,7 +2322,7 @@ open_row (GtkSidebarRow      *row,
                 NULL);
 
   if (place_type == PLACES_OTHER_LOCATIONS)
-    emit_show_other_locations (sidebar, open_flags);
+    emit_show_other_locations (sidebar);
   else if (uri != NULL)
     open_uri (sidebar, uri, open_flags);
   else if (place_type == PLACES_CONNECT_TO_SERVER)
@@ -4328,16 +4326,12 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
   /**
    * GtkPlacesSidebar::show-other-locations:
    * @sidebar: the object which received the signal.
-   * @open_flags: a single value from #GtkPlacesOpenFlags specifying how it should be opened.
    *
    * The places sidebar emits this signal when it needs the calling
    * application to present a way to show other locations e.g. drives
    * and network access points.
    * For example, the application may bring up a page showing persistent
    * volumes and discovered network addresses.
-   * Since 3.20 the signal added the @open_flags parameter in order to be able
-   * to specify whether the user choose to open the other locations in a different
-   * tab or window. In this way it behaves like the open-location signal.
    *
    * Since: 3.18
    */
@@ -4348,8 +4342,7 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
                         G_STRUCT_OFFSET (GtkPlacesSidebarClass, show_other_locations),
                         NULL, NULL,
                         _gtk_marshal_VOID__VOID,
-                        G_TYPE_NONE, 1,
-                        GTK_TYPE_PLACES_OPEN_FLAGS);
+                        G_TYPE_NONE, 0);
 
   /**
    * GtkPlacesSidebar::mount: